<template>
  <div class="reply">
    <van-nav-bar title="我的回复" placeholder fixed left-arrow />
    <van-sticky>
      <div class="reply__tabs">
        <van-tabs
          background="#fff"
          line-width="24px"
          line-height="4px"
          v-model:active="active"
        >
          <van-tab title="回复问题"></van-tab>
          <van-tab title="回复答案"></van-tab>
        </van-tabs>
      </div>
    </van-sticky>
    <div class="reply__content">
      <div class="card" v-for="i in 5" :key="i">
        <div class="card__title">
          关于怎么提升公司公众号流量, 应提升那几方面呢?
        </div>
        <div class="card__reply">
          <div class="card__ava">
            <img src="@/assets/images/login.png" />
            <span>视图文件</span>
          </div>
          <span class="date">2023-02-22 12:22回答了该答案</span>
        </div>
        <div class="card__content">
          <div class="van-multi-ellipsis--l3">
            这个问题的回答描述这个问题的回答描这个问题
            的回答描述这个问题的回答描述的回答描述这个
            问题的回答描述这个问题的回答描述这个问题的回答描这个问题
            的回答描述这个问题的回答描述的回答描述这个 问题的回答描述
          </div>
        </div>
      </div>
    </div>
  </div>
</template>
<script name="Reply" setup>
import { ref } from "vue";
const active = ref(0);
</script>
<style lang="scss" scoped>
.reply {
  &__content {
    padding: 12px 16px;

    .card {
      background: #ffffff;
      border-radius: 8px;
      padding: 12px 16px;
      margin-bottom: 12px;

      &__title {
        font-size: 16px;
        font-family: PingFangSC, PingFang SC;
        font-weight: 400;
        color: #272b2d;
        line-height: 22px;
        margin-bottom: 8px;
      }

      &__reply {
        display: flex;
        align-items: center;
        justify-content: space-between;

        .date {
          font-size: 12px;
          font-family: PingFangSC, PingFang SC;
          font-weight: 400;
          color: #676b6b;
          line-height: 17px;
        }
      }

      &__ava {
        display: flex;
        align-items: center;

        img {
          width: 20px;
          height: 20px;
          border-radius: 50%;
        }

        span {
          padding-left: 4px;
          font-size: 12px;
          font-family: PingFangSC, PingFang SC;
          font-weight: 400;
          color: #272b2d;
          line-height: 17px;
        }
      }

      &__content {
        margin-top: 10px;
        background: #f2f6ff;
        border-radius: 4px;
        padding: 6px 10px;
        font-size: 14px;
        font-family: PingFangSC, PingFang SC;
        font-weight: 400;
        color: #272b2d;
        line-height: 20px;
        overflow: hidden;
        box-sizing: border-box;
        text-align: justify;
      }
    }
  }
}
</style>
